#include "projecttype.h"


ProjectType::ProjectType(QWidget *parent) :
    QWizardPage(parent)
{
    setTitle(tr("Project Type"));
    setSubTitle(tr("Specify project type "
                   "want to generate skeleton source code files."));
    setPixmap(QWizard::LogoPixmap, QPixmap(":/images/logo1.png"));

    projectType = new QGroupBox(tr("Project Type"));

    declarativeApplication = new QRadioButton(tr("Declarative Application"));
    emptyProject = new QRadioButton(tr("Empty Project"));

    QVBoxLayout *groupBoxLayout = new QVBoxLayout;
    groupBoxLayout->addWidget(declarativeApplication);
    groupBoxLayout->addWidget(emptyProject);

    projectType->setLayout(groupBoxLayout);



    projectNameLabel = new QLabel(tr("&Project name:"));
    projectNameLineEdit = new QLineEdit;
    projectNameLabel->setBuddy(projectNameLineEdit);

    registerField("projectName", projectNameLineEdit);
    registerField("declarativeApplication", declarativeApplication);
    registerField("emptyProject", emptyProject);

    QGridLayout *glayout = new QGridLayout;
    glayout->addWidget(projectNameLabel, 0, 0);
    glayout->addWidget(projectNameLineEdit, 0, 1);

    QVBoxLayout *layout = new QVBoxLayout;
    layout->addWidget(projectType);
    layout->addLayout(glayout);
    setLayout(layout);
}

ProjectType::~ProjectType()
{

}
